<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>cookie 多站点登录</title>
</head>
<body>
  <!-- https://blog.csdn.net/Daybreak1209/article/details/51179629 -->

  <!--

    IE 对 跨域cookie 很严格 故
    <?php
    header('P3P: CP="CURa ADMa DEVa PSAo PSDo OUR BUS UNI PUR INT DEM STA PRE COM NAV OTC NOI DSP COR"');
    setcookie("test",$_GET['id'],time()+3600,"/", ".a.com");
    ?>


   -->


  <script type="text/javascript" src="http://www.b.com/set_cookie?cname=token&cval=test123"></script>
</body>
</html>
